package com.opbx.freeswitch;

import com.opbx.freeswitch.inbound.InboundApp;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @Author: wwy
 * @Date: 2023/6/28 15:31
 */
@Component
public class CallCenterInit implements ApplicationRunner {
    public static String freesWitchAdd = "192.168.1.4";
    @Override
    public void run(ApplicationArguments args) throws Exception {
        InboundApp inboundApp = new InboundApp();
        inboundApp.init(freesWitchAdd,8021);
    }
}
